@import "@/styles/flex-init.scss";

.layout {
  @extend .f;
  overflow: auto;
  height: 100vh;

  .sidebar {
    width: 150rpx;
    font-size: 14px;
    overflow-y: auto;
    background: var(--primary-plain);
    color: var(--primary-text-value);

    .item {
      @extend .f-center;
      height: 70px;
      border-bottom: 1px solid #f1f1f1;
    }

    .active {
      background: #fff;
      position: relative;
      color: var(--primary);

      .tag {
        position: absolute;
        left: 0;
        height: 100%;
        width: 4px;
        background: var(--primary);
      }
    }
  }

  .select-name {
    font-size: 14px;
    background: $fff;
    @extend .f-align-center;
    height: 35px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-text-value);
    margin-left: 30rpx;
  }

  &-right {
    background: #fff;
    // padding-left: 30rpx;
    width: calc(100% - 160rpx);
    height: 100%;
    overflow: auto;

    .cut-off-rule {
      background: $sidebar-bg;
      height: 2px;
      width: 100%;
    }

    .c {
      padding-left: 10px;

      .child {
        margin-top: 10px;
        margin-bottom: 20px;
        @extend .f-center;
        flex-direction: column;

        // color: $color-795c;
        .iconfont {
          color: $sidebar-checked;
          width: 40px;
          height: 40px;
          font-size: 40px;
        }

        width: 33%;
        @extend .f-center;

        .name {
          text-align: center;
          font-size: 14px;
          margin-top: 10px;
          color: #474747;
        }
      }
    }
  }
}

// #ifdef H5
.layout {
  .sidebar {
    width: 75px;
    flex-shrink: 0;
  }

  &-right {
    width: calc(100vw - 75px);
  }
}

// #endif
